package com.projet.whattowatch.objet;

import java.util.ArrayList;

public class Cinema implements Comparable<Cinema>
{
	private String adresse;
	private String nom;
	private boolean threeDDispo;
	private float prix3D;
	private float prix2D;
	public ArrayList<Projection> listProjection;
	private String url;

	/**
	 * Constructor for objects of class Cinema
	 */
	public Cinema(String monAdresse, String monNom, boolean threeDDispo,
			float monPrix3D, float monPrix2D,
			ArrayList<Projection> maListProjection, String url)
	{
		this.adresse = monAdresse;
		this.nom = monNom;
		this.threeDDispo = threeDDispo;
		this.prix3D = monPrix3D;
		this.prix2D = monPrix2D;
		this.listProjection = maListProjection;
		this.url = url;

	}

	public String getAdresse()
	{
		return this.adresse;
	}

	public String getNom()
	{
		return this.nom;
	}

	public boolean getThreeDDispo()
	{
		return this.threeDDispo;
	}

	public double getPrix3D()
	{
		return this.prix3D;
	}

	public double getPrix2D()
	{
		return this.prix2D;
	}

	public void setAdresse(String monAdresse)
	{
		this.adresse = monAdresse;
	}

	public void setNom(String monNom) 
	{
		this.nom = monNom;
	}

	public void setThreeDDispo(boolean threeDDispo)
	{
		this.threeDDispo = threeDDispo;
	}

	public void setPrix3D(float monPrix3D)
	{
		this.prix3D = monPrix3D;
	}

	public void setPrix2D(float monPrix2D)
	{
		this.prix2D = monPrix2D;
	}
	
	public String getUrl()
	{
		return url;
	}

	public void setUrl(String url)
	{
		this.url = url;
	}

	/**
	 * Add the Projection specified in the parameter, at the end of the
	 * listProjection
	 */
	public void addProjection(Projection maProjection)
	{
		this.listProjection.add(maProjection);
	}

	/**
	 * return true if he removed succefully the Element in parameter, false
	 * otherwise
	 */
	public boolean removeProjection(Projection maProjection)
	{
		return true; // TODO a compléter
	}

	@Override
	public int compareTo(Cinema monCinema)
	{
		return adresse.compareTo(monCinema.adresse);

	}

	public void sendToInternet()
	{
		// TODO
	}
}
